<?php
echo "只有登陆才能发帖";
echo "<br>";
$ini_array = parse_ini_file("qiao.ini");
$host = $ini_array[ip_address];
require_once '20161010_1.php';
$sql="SELECT * FROM topicinfo";
if ($result=mysqli_query($conn,$sql))
{
	// 一条条获取
	while ($row=mysqli_fetch_row($result))
	{
		printf ("<font color='#2828FF'>%s &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</font>  by %s  &nbsp;&nbsp;&nbsp;&nbsp; %s",$row[1],$row[3],$row[4]);
		echo "<br>";
	}
	
	// 释放结果集合
	mysqli_free_result($result);
}
mysqli_close($conn);
?>
<script>
function jump1(){
  window.location.href="<?php echo $host;?>"+"/login.php";
}
</script>
<input type="button" value="登陆" onclick=javascrtpt:jump1()>
<script>
function jump2(){
window.location.href="<?php echo $host;?>"+"/checkcode_get.php";
}
</script>
<input type="button" value="注册" onclick=javascrtpt:jump2()>
